HipText

Formatting the text: Text should be formatted using the $() syntax. Currently, no formatting is support, but that syntax is reserved and in the future, it will be used as for example: $(RGB, 1.0, 1.0, 1.0) or even $(WHITE), so, basic parsing is being done for accounting how many text does really need to be rendered.

Constructors

this
this(int boundsWidth, int boundsHeight, bool bWordWrap)
Undocumented in source.
this
this(string text, int x, int y, HipFont fnt, int boundsWidth, int boundsHeight, bool bWordWrap)
Undocumented in source.

Members

Functions

color
HipColor color()
Undocumented in source. Be warned that the author may not have intended to support it.
color
HipColor color(HipColor c)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
drawableTextCount
size_t drawableTextCount()
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
void getSize(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
getVertices
void[] getVertices()
Undocumented in source. Be warned that the author may not have intended to support it.
setAlign
void setAlign(HipTextAlign alignh, HipTextAlign alignv)
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
void setPosition(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
text
string text()
Undocumented in source. Be warned that the author may not have intended to support it.
text
string text(string newText)
Undocumented in source. Be warned that the author may not have intended to support it.
updateAlign
void updateAlign(int lineNumber, int displayX, int displayY, int boundsWidth, int boundsHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
updateText
void updateText(IHipFont font)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_color
HipColor _color;
Undocumented in source.
_drawableTextCount
size_t _drawableTextCount;
Undocumented in source.
_dtext
dstring _dtext;
Undocumented in source.
_text
string _text;
Undocumented in source.
alignh
HipTextAlign alignh;
Undocumented in source.
alignv
HipTextAlign alignv;
boundsHeight
int boundsHeight;
Undocumented in source.
boundsWidth
int boundsWidth;
Undocumented in source.
checkDirty
DirtyFlagsCmp!(shouldUpdateText, x, y, wordWrap, font, alignh, alignv) checkDirty;
Undocumented in source.
depth
float depth;
Undocumented in source.
font
HipFont font;
Undocumented in source.
height
int height;

Update dynamically based on the font, the text scale and the text content

linesWidths
uint[] linesWidths;
Undocumented in source.
maxDrawableTextCount
size_t maxDrawableTextCount;
Undocumented in source.
processedText
dstring processedText;
Undocumented in source.
shouldRenderLineBreak
bool shouldRenderLineBreak;
Undocumented in source.
shouldRenderSpace
bool shouldRenderSpace;
Undocumented in source.
shouldUpdateText
bool shouldUpdateText;
Undocumented in source.
textConfig
HipTextStopConfig[] textConfig;
Undocumented in source.
vertices
HipTextRendererVertexAPI[] vertices;
Undocumented in source.
width
int width;

Update dynamically based on the font, the text scale and the text content

wordWrap
bool wordWrap;
Undocumented in source.
x
int x;
y
int y;
Undocumented in source.

Meta